package com.wanmait.recruitment.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.mapper.ItemExMapper;
import com.wanmait.recruitment.pojo.ItemEx;
import com.wanmait.recruitment.service.ItemExService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class ItemExServicelmpl  implements ItemExService {
    @Resource
    private ItemExMapper itemExMapper;
    @Override
    public void insert(ItemEx itemEx) {
        itemExMapper.insertItemEx(itemEx);

    }
    @Override
    public int countItemEx(){
        return itemExMapper.CountItmeEx();

    }

    @Override
    public void delete(Integer id) {
        itemExMapper.delete(id);

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(ItemEx object) {

    }

    @Override
    public ItemEx findById(Integer id) {
        return itemExMapper.selectItemExById(id);
    }

    @Override
    public List<ItemEx> findAll() {
        return null;
    }

    @Override
    public List<ItemEx> findAll(ItemEx object) {
        return null;
    }
   @Override
    public  List<ItemEx>findByIdList(Integer id){
        return  itemExMapper.selectList(id);
    }

    @Override
    public PageInfo<ItemEx> findPage(int pageNum, int pageSize) {
        return null;
    }
    @Override
    public  void update(ItemEx itemEx,Integer id){
        itemExMapper.updateItemExById(itemEx,id);

    }
}
